package com.jqr.activity.mynavigationdemo

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent

import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue

import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue


import androidx.compose.ui.tooling.preview.Preview
import androidx.navigation.compose.rememberNavController
import com.jqr.activity.mynavigationdemo.ui.theme.MyNavigationDemoTheme

class MainActivity : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContent {
            RallyApp()
        }
    }
}
@Composable
fun  RallyApp(){
    MyNavigationDemoTheme {
        val navController= rememberNavController()
    }

}

@Preview(showBackground = true)
@Composable
fun GreetingPreview() {
    RallyApp()
}